package lab01;

public class Test10 {
    public static void main(String[] args) {
        String[] x = new String[]{
                "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T"
        };//建立数组
        int i;
        int j;
        int k;
        int y = 0;//输出数组
        int z = 10;//输出数组
        for (i = 1;i <= 5;i++){
            for (j = 1;j <= i;j++){
                System.out.println("");
            }
            for (k = 5;k > i;k++){
                System.out.println(x[y]);
                System.out.println( "");
                y++;
            }
            System.out.println();
            for (i = 1;i <= 5;i++){
                for (j = 1;j <= 4-i;j++){
                    System.out.println("");
                }

            }
            for (k = 5;k > i;k--){
                System.out.println(x[z]);
                System.out.println("");
                z++;
            }
            System.out.println();
        }
    }
}
